using Gateway.Common.Entity;
namespace Gateway.Domain.Entities;

/// <summary>
/// 菜单对应的接口列表权限
/// </summary>
public class MenuApiAuth : EntityBase
{
    public MenuApiAuth(string code, string url)
    {
        Code = code;
        Url = url;
    }

    /// <summary>
    /// 菜单标识
    /// </summary>
    public string MenuId { get;private set; }
    /// <summary>
    /// 接口权限标识
    /// </summary>
    public string Code { get;private set; }
    /// <summary>
    /// 接口地址  相对路径  比如 setting/role
    /// </summary>
    public string Url { get;private set; }

    public Menu Menu { get;private set; }

    public MenuApiAuth()
    {
        
    }
}